﻿using System.Collections.Generic;
using SIG.Model.Store;
using System.Threading.Tasks;
using System.Threading;

namespace SIG.Service
{
    public interface IGoodsService : IEntityService<Goods>
    {
        IEnumerable<Goods> LatesterGoods(int count);
        List<Goods> GetPagedActiveElements(int pageIndex, int pageSize, string keyword, int? categoryId, out int totalCount);     

        List<Goods> GetPagedElements(int pageIndex, int pageSize, string keyword, int? categoryId, out int totalCount);

        Task<IList<Goods>> GetActiveElementsAync(CancellationToken cancellationToken = default(CancellationToken));


    }
}
